<section id="header">
	<div class="container">
		<div class="rows">
			<div class="col-md-9 col-sm-12">
				<div class="box-title-page">
					<h4>Articles</h4>
				</div><br />
				<div class="row">
					<?php if(isset($items) && !empty($items)): foreach ($items as $item): ?>
					<div class="col-md-4 col-sm-12">
						<div class="box-article-page">
							<div class='image-article'>
								<img class="img-responsive" src="<?php echo site_url('articles/appimage/articles/'.$item->a_filename); ?>" alt="<?php echo $item->a_origname; ?>">
							</div>
							<div class="caption">
								<a href="<?php echo site_url('articles/detail/'.slugify($item->a_title).'/'.$item->a_id); ?>"><h2 style='margin-bottom:1px !important;color:#b9b9b9;font-weight:bold'><?php echo $item->a_title; ?></h2></a>
								<!-- <h4 style='color:#e60000;margin-top:0px !important'><?php echo date("d F, Y", strtotime($item->a_created_date)); ?></h4> -->
							</div>
						</div>
					</div>
					<?php endforeach; endif; ?>
				</div>
				<div class="text-center">
					<ul class="pagination">
						<?php echo $pagination; ?>
					</ul>
				</div>
			</div>
			<div class="col-md-3 col-sm-12">
				<div class="list-group">
					<a href="#" class="list-group-item active">
						<i class="fa fa-file-o"></i> Categories Article
					</a>
					<?php if(isset($categories)): foreach ($categories as $cat): ?>
						<a href="<?php echo site_url('articles/cat/'.$cat->ca_id); ?>" class="list-group-item">
							<i class="fa fa-file"></i> <?php echo $cat->ca_name; ?>
						</a>	
					<?php endforeach; endif; ?>
				</div>
				<div class="bs-example">
				    <div class="list-group">
				        <a href="#" class="list-group-item active">
				            <span class="glyphicon glyphicon-file"></span> Recent Article
				        </a>
				        <?php if(isset($recent_articles)): foreach ($recent_articles as $articles): ?>
							<a href="<?php echo site_url('articles/detail/'.$articles->a_title.'/'.$articles->a_id); ?>" class="list-group-item">
								<i class="fa fa-gift"></i> <?php echo $articles->a_title; ?>
							</a>	
						<?php endforeach; endif; ?>
				    </div>
				</div>
				<div class="bs-example">
				    <div class="list-group">
				        <a href="#" class="list-group-item active">
				            <span class="glyphicon glyphicon-file"></span> Recent Products
				        </a>
				        <?php if(isset($recent_products)): foreach ($recent_products as $products): ?>
							<a href="<?php echo site_url('products/detail/'.slugify($products->p_name).'/'.$products->p_id); ?>" class="list-group-item">
								<i class="fa fa-gift"></i> <?php echo $products->p_name; ?>
							</a>	
						<?php endforeach; endif; ?>
				    </div>
				</div>
				<div style='margin-top:10px;margin-bottom:10px;'>
					<?php
						if(isset($widget_home)): foreach ($widget_home as $widget): 
							if ($widget->widget_place == 1)	echo $widget->widget_source;
						endforeach; endif; 
					?>
				</div>
				</div> -->
			</div>
		</div>
	</div>
</section>